home *** CD-ROM | disk | FTP | other *** search
- projectname Gui1
- vbox
- button
- vrel 1
- text "1"
- id 1
- end
- button
- vrel 1
- text "2"
- id 2
- end
- end
-
- projectname Gui2
- hbox
- string
- tags GTST_MaxChars,256
- id 3
- end
- button
- vrel 1
- text "2"
- id 4
- end
- end
-
- projectname Gui3
- vbox
- hbox
- button
- vrel 1
- text "1"
- id 5
- end
- button
- vrel 1
- text "2"
- id 6
- end
- end
- hbox
- button
- vrel 1
- text "3"
- id 7
- end
- button
- vrel 1
- text "4"
- id 8
- end
- end
- end
-
- #c_source
-
- char *modes[]={"Mode 1","Mode 2","Mode 3",NULL};
- struct WinInfo *muxmodes[]={&Gui1,&Gui2,&Gui3};
-
- int gui_mux=0;
-
- extern struct WinInfo TestPro;
-
- int MHook(struct IntuiMessage *msg)
- {
- GG_StopGui(&TestPro);
-
- gui_mux=msg->Code;
-
- GG_ClearWindow(TestPro.Window);
-
- GG_RenderGui(TestPro.Window,&TestPro);
- return(1);
- }
-
- int Multiplex(struct WinInfo *winfo,
- struct NewGadget *ng,
- struct GadInfo *gad,
- int left, int top, int width, int height)
- {
- return(GG_SubGui(winfo,muxmodes[gui_mux],left,top,width,height));
- }
-
- #end_source
-
- projectname TestPro
- vbox
- cycle
- tags GTCY_Labels,(ULONG)modes
- id 10
- hook MHook
- end
- custom
- MinHChar 4
- MinVChar 2
- MinVPix 2*4+INTERHEIGHT
- custom Multiplex
- id 11
- end
- end
-
-
-
-
-
-
-